#!/bin/bash

#
# Daex - Dvd Audio EXtractor
# Script di avvio automatico del programma, specificando jar e librerie
# nel sistema.
#

JVM=$JAVA_HOME/jre/bin/java
JARS="-cp java/target/jars/stax.jar:java/target/jars/stax-api.jar:java/target/daex-1.3.jar"
LIBS="-Djava.library.path=native/target"
TARGET="eu.chimera_bellerofonte.tesi.Application"

if [ ! -e $JVM ]; then
	echo Java VM could not be found. Please check your JAVA_HOME environment variable.
	exit 1
fi

exec $JVM $JARS $LIBS $TARGET
